Einhugur Word Plugin for Xojo

Paragraph.AppendShapeRun Method

Appends new shape to the paragraph. This function calls AppendShapeRun, creating run, then it fetches the shape within the run. A run is created, and you can get the shape from within the Run. If you do not care about getting handle to the Run then use the AppendShape function which only returns the shape group.

AppendShapeRun(
   shapeType as EinhugurWord.ShapeTypes,
   x as Double,
   y as Double,
   cx as Double,
   cy as Double,
   unit as EinhugurWord.EmuUnits) as EinhugurWord.Run

Parameters

shapeType
The type of the shape to append.
x
X Location of the shape from start of the paragraph.
y
Y Location of the shape from start of the paragraph.
cx
Width or x portion 2nd point of the shape.
cy
Width or y portion 2nd point of the shape.
unit
Unit for the shape.

Returns

EinhugurWord.Run
The newly created Run which contains the Shape.

Remarks

Note that Shape support is very preliminary.

See Also

Paragraph Class